
<%@page import="model.SetUp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%String user = (String) session.getAttribute("user");
    SetUp setUp = new SetUp();
    String user_ct="";
    	if(user ==null){
    		user_ct += "<li><a href='"+setUp.BASE_URL+"/login.jsp'>Đăng Nhập</a></li> <li><a href='/MYFILM/register.jsp'>Đăng Ký</a></li>";
    	}else{
    		user_ct += "<li><a href='"+setUp.BASE_URL+"/user-contro.jsp'> "+ user + " </a></li> <li><a href='/MYFILM/message.jsp?m=logout&r=in'>Thoát</a></li>";
    	}
    %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='stylesheet' href='css/style.css' />
</head>
<body>
	<div id="container">
        <div id="header">
        	<div id = "logo"><h1><a href="<%=setUp.BASE_URL %>/index.jsp">MYFILM</a></h1></div>
            <div id="seach-top">
				<form method="post" action="Search">
					<input style="color: #828282" type="text" class=SINPUT name="name"
						size="25" maxlength="255" value="Nhập tên phim..."
						onfocus="if (this.value == 'Nhập tên phim...'){this.value=''; this.style.color='Black';}"
						onblur="if (this.value == '') {this.value='Nhập tên phim...'; this.style.color='#828282';}"
						type="text" name="user" size="20" /> <input
						style="height: 25px; width: 40px; border: 0; color: transparent; cursor: pointer; background-color: transparent; background-image: url(css/images/search-icon.png); background-repeat: no-repeat;"
						type="submit">
				</form>
			</div>
        </div>
        <div id="navigation">
            <ul>
                <li><a href='#'>Home</a></li>
                <li><a href='#'>About</a></li>
                <li><a href='#'>Services</a></li>
                <li><a href='#'>Contact us</a></li>
            </ul>

            <div class="greeting">
            	<ul>
            		<%=user_ct %>
            	</ul>
            </div>
        </div><!-- end navigation-->
